//***********************************************************************
//*                                                                     *
//*   Copyright (c) 1985-2019, American Megatrends International LLC.   *
//*                                                                     *
//*      All rights reserved. Subject to AMI licensing agreement.       *
//*                                                                     *
//***********************************************************************

#include <AmiPeiLib.h>
#include <Guids/OemHob.h>
#include <Token.h>

EFI_STATUS CreateHobEntryPoint(
        IN       EFI_PEI_FILE_HANDLE       *FileHandle,
        IN CONST EFI_PEI_SERVICES         **PeiServices 
)
{
    EFI_STATUS                            Status;
    Oem_Hob                               *OemHob    = NULL;
    
    Status=(*PeiServices)->CreateHob(PeiServices,
                                    EFI_HOB_TYPE_GUID_EXTENSION,
                                    sizeof(Oem_Hob),
                                    &OemHob);
    if(!EFI_ERROR(Status)){
    	//test Hob
        OemHob->EfiHobGuidType.Name = gOemHobGuid;
        OemHob->OemTestData = OEM_TEST;
    }
	return EFI_SUCCESS;
}
